package cn.edu.cqut.test0423;

import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;

public class Test2 {
	public static void main(String[] args) {
		ArrayList<String> list = new ArrayList<String>();
		list.add("1");
		list.add("2");
		list.add("3");
		list.add("4");
		list.add("5");
		for(int i=0; i<list.size(); i++)
			System.out.print(list.get(i)+"	");
		System.out.println();
		for(String str : list)
			System.out.print(str+"	");
		System.out.println();
		System.out.println(list.toString());
		list.forEach(System.out::print);
		System.out.println();
		list.forEach((str)->{System.out.print(str+"	");});
	}
}
